<?php include atemplate("header");?>
<style type="text/css">
table th{
	line-height:24px;
}
</style>
<br />
  <table width="90%" border="0" cellspacing="0" cellpadding="0">
  <tr>
	<td align="center"  bgcolor="#969696"><strong>系 统 设 置</strong></td>
  </tr>
</table>
<br />
<form action="index.php?do=system" method="post">
<table width="480" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
	<td width="120" height="40" align="center">投票间隔时间：</td>
	<td width="100" align="left">
	<select name="limittime" id="limittime">
	  <option value="1" <?php if($_CONFIG['limittime']=='1'){ echo "selected";}?>>1小时</option>
	  <option value="2" <?php if($_CONFIG['limittime']=='2'){ echo "selected";}?>>2小时</option>
	  <option value="3" <?php if($_CONFIG['limittime']=='3'){ echo "selected";}?>>3小时</option>
	  <option value="4" <?php if($_CONFIG['limittime']=='4'){ echo "selected";}?>>4小时</option>
	  <option value="5" <?php if($_CONFIG['limittime']=='5'){ echo "selected";}?>>5小时</option>
	  <option value="6" <?php if($_CONFIG['limittime']=='6'){ echo "selected";}?>>6小时</option>
	  <option value="7" <?php if($_CONFIG['limittime']=='7'){ echo "selected";}?>>7小时</option>
	  <option value="8" <?php if($_CONFIG['limittime']=='8'){ echo "selected";}?>>8小时</option>
	  <option value="9" <?php if($_CONFIG['limittime']=='9'){ echo "selected";}?>>9小时</option>
	  <option value="10" <?php if($_CONFIG['limittime']=='10'){ echo "selected";}?>>10小时</option>
	  <option value="11" <?php if($_CONFIG['limittime']=='11'){ echo "selected";}?>>11小时</option>
	  <option value="12" <?php if($_CONFIG['limittime']=='12'){ echo "selected";}?>>12小时</option>
	  <option value="13" <?php if($_CONFIG['limittime']=='13'){ echo "selected";}?>>13小时</option>
	  <option value="14" <?php if($_CONFIG['limittime']=='14'){ echo "selected";}?>>14小时</option>
	  <option value="15" <?php if($_CONFIG['limittime']=='15'){ echo "selected";}?>>15小时</option>
	  <option value="16" <?php if($_CONFIG['limittime']=='16'){ echo "selected";}?>>16小时</option>
	  <option value="17" <?php if($_CONFIG['limittime']=='17'){ echo "selected";}?>>17小时</option>
	  <option value="18" <?php if($_CONFIG['limittime']=='18'){ echo "selected";}?>>18小时</option>
	  <option value="19" <?php if($_CONFIG['limittime']=='19'){ echo "selected";}?>>19小时</option>
	  <option value="20" <?php if($_CONFIG['limittime']=='20'){ echo "selected";}?>>20小时</option>
	  <option value="21" <?php if($_CONFIG['limittime']=='21'){ echo "selected";}?>>21小时</option>
	  <option value="22" <?php if($_CONFIG['limittime']=='22'){ echo "selected";}?>>22小时</option>
	  <option value="23" <?php if($_CONFIG['limittime']=='23'){ echo "selected";}?>>23小时</option>
	  <option value="24" <?php if($_CONFIG['limittime']=='24'){ echo "selected";}?>>24小时</option>
	</select>
	</td>
	<td width="100" align="center">是否限制IP：</td>
	<td width="40" align="left"><input type="checkbox" name="limitip" id="limitip" <?php if($_CONFIG['limitip']==true){ echo "checked";}?> /></td>
	</tr>
	<tr>
	<td width="120" align="center">显示作品数量：</td>
	<td colspan=3 align="left"><input type="text" name="imageNum" require="true" datatype="number" msg="数量不符合要求，最小是2，最大10" min="2" max="10" id="imageNum" value="<?php echo $_CONFIG['imageNum']; ?>" size=3/>
	</td>
	</tr>
	<tr>
		<td width="120" align="center">	上传大小限制：</td>
		<td colspan=3 align="left"><input type="text" name="uploadmax" id="uploadmax" require="true" datatype="number" msg="数量不符合要求，最小是50k，最大5M" min="50" max="5120" value="<?php echo $_CONFIG['uploadmax']; ?>" size=3/>(KB)
		</td>
	</tr>
	<tr>
		<td width="120" align="center">比例缩放规则：</td>
		<td colspan=3 align="left"><input type="text" name="photowidth" id="photowidth" value="<?php echo $_CONFIG['photowidth']; ?>" size=3/>X<input type="text" name="photoheight" id="photoheight" value="<?php echo $_CONFIG['photoheight']; ?>" size=3/>px（
		大图宽不能超过<?php echo $_CONFIG['photowidth']; ?>，高不能超过<?php echo $_CONFIG['photoheight']; ?>） 
		</td>
	</tr>
	<tr>
		<td width="120" align="center">缩略图尺寸：</td>
		<td colspan=3 align="left"><input type="text" name="thumbwidth" id="thumbwidth" value="<?php echo $_CONFIG['thumbwidth']; ?>" size=3/>X<input type="text" name="thumbheight" id="thumbheight" value="<?php echo $_CONFIG['thumbheight']; ?>" size=3/>px（
		大图宽不能超过<?php echo $_CONFIG['thumbwidth']; ?>，高不能超过<?php echo $_CONFIG['thumbheight']; ?>） 
		</td>
	</tr>
	<tr>
	<td align="center" colspan=4><input type="hidden" name="ac" value="setting"/><br/><input type="submit" name="button" id="button" value="提交" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="button2" id="button2" value="重置" /></td>
  </tr>
</table>
</form>
<script language="javascript">
$(function(){
	$('form').checkForm();
})
</script>
<br />
  <table width="90%" border="0" cellspacing="0" cellpadding="0">
  <tr>
	<td align="center"  bgcolor="#969696"><strong>密 码 设 置</strong></td>
  </tr>
</table>
<br />
<form action="index.php?do=system" method="post" onsubmit="return checkPForm();">
<table width="480" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>
	<th>原有密码：</th>
	<td  align="left"><input type="password" name="old_password" id="old_password"/></td>
  </tr>
  <tr>
	<th>重置密码：</th>
	<td align="left"><input type="password" name="password" id="password"/></td>
  </tr>
  <tr>
	<th>确认密码：</th>
	<td align="left"><input type="password" name="password1" id="password1"/></td>
  </tr>
  <tr>
	<th></th>
	<td align="left"><input type="submit" value=" 确 认 "/></td>
  </tr>
</table>
<input type="hidden" name="ac" id="ac" value="password"/>
</form>
<script language="javascript">
	function checkPForm(){
		if($("#oldpassword").val()==""){
			alert("原有密码不能为空");
			return false;
		}
		if($("#password").val()==""){
			alert("重置密码不能为空");
			return false;
		}
		if($("#password1").val()==""){
			alert("确认密码不能为空");
			return false;
		}
		if($("#password").val()!=$("#password1").val()){
			alert("两次密码输入不一致");
			return false;
		}
		return true;
	}
</script>
<?php include atemplate("footer");?>